import swipe from './swipe/index.vue'
export default {
  props: {
    homeIsShow: {
      type: Boolean,
      default: false
    },
    goodsIsShow: {
      type: Boolean,
      default: true
    },
    allDataList: {
      type: null,
      default: {}
    },
    activeIndex: {
      type: null,
      default: 0
    },
    timeShow: {
      type: Boolean,
      default: true
    }
  },
  data() {
    return {
      isShow: false,
      audio_link: ''
    };
  },
  methods: {
    play(value) {
      this.audio_link = this.allDataList.audio;
      this.isShow = value;
      if (this.$refs.audio.paused) {
        this.$refs.audio.play();
      } else {
        this.$refs.audio.pause();
      }
    }
  },
  components: { swipe },
};
